package com.buddha.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.buddha.api.dto.ClientDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author mybatis-plus
 * @since 2023-07-06
 */
@Getter
@Setter
  @TableName("article")
@ApiModel(value = "Article对象", description = "")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("文章id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("客户id")
      private Integer clientId;

      @ApiModelProperty("汽车id")
      private Integer carId;

      @ApiModelProperty("文章标题")
      private String title;

      @ApiModelProperty("文章内容")
      private String context;

      @ApiModelProperty("文章简介")
      private String intro;

      @ApiModelProperty("提交日期")
      private LocalDateTime commitTime;

      @ApiModelProperty("发布日期")
      private LocalDateTime issueTime;

      @ApiModelProperty("文章热度")
      private Integer hot;

      @ApiModelProperty("文章状态")
      private Integer state;

      @TableField(exist = false)
      private ClientDto client;

      @TableField(exist = false)
      private Integer brandId;
}
